using AiQiuQuan.Sport.WebApi.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AiQiuQuan.Sport.WebApi.Repositories.Mappings
{
    /// <summary>
    /// 市数据库映射
    /// </summary>
    public class CityMap : IEntityTypeConfiguration<City>
    {
        /// <summary>
        /// Configure
        /// </summary>
        public void Configure(EntityTypeBuilder<City> builder)
        {
            builder.ToTable("City").HasKey(p => p.ID);
        }
    }
}
